package vip.sweet.biz.modular.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * @author ASUS
 * @Date 2025/10/4 20:25
 * @Descripition
 */
@TableName("biz_order_items")
@Schema(description = "业务逻辑订单项实体类")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BizOrderItems {
    @Schema(description = "订单项ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @Schema(description = "订单ID")
    private String orderId;
    @Schema(description = "商品ID")
    private String productId;
    @Schema(description = "商品数量")
    private Integer quantity;
    @Schema(description = "商品价格")
    private Double price;
    @Schema(description = "商品尺寸")
    private String size;
    @Schema(description = "商品颜色")
    private String color;
}
